package com.foreknow.service;

import com.foreknow.model.Guestbook;
import com.foreknow.util.Pagination;

import java.util.List;

public interface GuestbookService {
    /**
     *添加留言
     */
    public boolean save(Guestbook guestbook);
    /*
    查询
     */
    public List<Object> queryInfo();

    /**
     * 根据id删除
     * @param id
     * @return
     */
    public boolean  deleteBean(Integer id);

    /**
     * 修改
     * @param guestbook
     * @return
     */
    public boolean updateBean(Guestbook guestbook);

    /**
     * 根据id查询
     * @param id
     * @return
     */
    public  Guestbook findAll(Integer id);


    /**
     * 分页查询留言信息
     * @param pageSize
     * @param pageNumber
     * @return
     */
    public Pagination getByPage(int pageSize,int pageNumber);











}
